
import Taro, {Component} from '@tarojs/taro'
import {View } from '@tarojs/components'
import {getRuntime} from '../utils/common'

// 举报组件
class Report extends Component {
  static handelRouter(url: string = '/pages/index/index'): void {
    getRuntime().navigateTo(url)
  }
  render() {
    return (
      <View>
        <View className='report' onClick={Report.handelRouter.bind(this, '/pages/other/report_detail')}>
          <View className='text'>若遇到无效、诈骗、虚假等不信息，请立即举报</View>
          <View className='btn-report'>举报</View>
        </View>
      </View>
    )
  }
}

export default Report

